package cn.stylefeng.guns.modular.gridsystem.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;

import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 故障表
 *
 * @author ssy
 * @date 2021/09/14 11:47
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BizExceptionParam extends BaseParam {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = {edit.class})
    private Integer id;

    /**
     * 关联的设备
     */
    @NotNull(message = "关联的设备不能为空", groups = {add.class, edit.class})
    private Integer deviceId;

    /**
     * 故障名称
     */
    @NotNull(message = "故障名称不能为空", groups = {add.class, edit.class})
    private String errorName;

    /**
     * 故障初次创建时间
     */
    private String createdAt;

    /**
     * 故障类型
     */
    @NotNull(message = "故障类型不能为空", groups = {add.class, edit.class})
    private Integer errorType;

    /**
     * 上报网关的编号
     */
    @NotNull(message = "上报网关的编号不能为空", groups = {add.class, edit.class})
    private String gatewayCode;

    /**
     * 故障处理状态（未处理，已处理）
     */
    @NotNull(message = "故障处理状态（未处理，已处理）不能为空", groups = {add.class, edit.class})
    private Integer status;

    private String deviceIds;

    private String accessToken;

    /**
     * 站点主键
     */
    private Integer stationId;

    /**
     * 查询故障开始时间
     */
    private String startTime;

    /**
     * 查询故障结束时间
     */
    private String endTime;
    /**
     * 网关类型
     */
    private Integer gatewayType;

}
